package com.cm.caseManagement.service.impl;

import com.cm.caseManagement.dao.CmCaseApplyRecordMapper;
import com.cm.caseManagement.pojo.entity.CmCaseApplyRecord;
import com.cm.caseManagement.service.ICmCaseApplyRecordService;
import com.cm.caseManagement.utils.DateUtils;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 案件申报记录中间Service业务层处理
 *
 * @author ruoyi
 * @date 2025-10-05
 */
@Service
public class CmCaseApplyRecordServiceImpl implements ICmCaseApplyRecordService
{
    @Autowired
    private CmCaseApplyRecordMapper cmCaseApplyRecordMapper;

    /**
     * 查询案件申报记录中间
     *
     * @param id 案件申报记录中间主键
     * @return 案件申报记录中间
     */
    @Override
    public CmCaseApplyRecord selectCmCaseApplyRecordById(Long id)
    {
        return cmCaseApplyRecordMapper.selectCmCaseApplyRecordById(id);
    }

    /**
     * 查询案件申报记录中间列表
     *
     * @param cmCaseApplyRecord 案件申报记录中间
     * @return 案件申报记录中间
     */
    @Override
    public List<CmCaseApplyRecord> selectCmCaseApplyRecordList(CmCaseApplyRecord cmCaseApplyRecord)
    {
        return cmCaseApplyRecordMapper.selectCmCaseApplyRecordList(cmCaseApplyRecord);
    }

    /**
     * 新增案件申报记录中间
     *
     * @param cmCaseApplyRecord 案件申报记录中间
     * @return 结果
     */
    @Override
    public int insertCmCaseApplyRecord(CmCaseApplyRecord cmCaseApplyRecord)
    {
        return cmCaseApplyRecordMapper.insertCmCaseApplyRecord(cmCaseApplyRecord);
    }

    /**
     * 修改案件申报记录中间
     *
     * @param cmCaseApplyRecord 案件申报记录中间
     * @return 结果
     */
    @Override
    public int updateCmCaseApplyRecord(CmCaseApplyRecord cmCaseApplyRecord)
    {
        return cmCaseApplyRecordMapper.updateCmCaseApplyRecord(cmCaseApplyRecord);
    }

    /**
     * 批量删除案件申报记录中间
     *
     * @param ids 需要删除的案件申报记录中间主键
     * @return 结果
     */
    @Override
    public int deleteCmCaseApplyRecordByIds(Long[] ids)
    {
        return cmCaseApplyRecordMapper.deleteCmCaseApplyRecordByIds(ids);
    }

    /**
     * 删除案件申报记录中间信息
     *
     * @param id 案件申报记录中间主键
     * @return 结果
     */
    @Override
    public int deleteCmCaseApplyRecordById(Long id)
    {
        return cmCaseApplyRecordMapper.deleteCmCaseApplyRecordById(id);
    }
}
